Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

walt-link

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

walt-link

Links .walt WebAssembly programs

  • 0.2.11
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Linker for walt WebAssembly Programs.

About

Wraps .walt file with a JavaScript module, with all the dependencies linked.

Intented to be used in a node environment. Not yet implemented in a loader.

Still under development, but the API wont change.

Notes

  • Any import with a leading dot(.) will be linked into the final binary
  • Anything without a leading dot(.) will be treated as an environment import and is left up to the user to implement.
  • The top-level function returns a factory method which returns a function taking an import object. Every call to the method returns a brand new module
  • importObj used in the factory method is shared accross all modules.
  • Walt Dependencies are shared within a single WebAssembly module instance. Each import is a stand alone module linked by the linker. This is useful if you want shared module state across imports, similar to node modules.

TODOs

Usage

const { link } = require("walt-link");
const path = require("path");

const factory = link(path.resolve(__dirname, "./index.walt"));

factory({
  env: {
    memory,
  },
}).then(wasmModule => {
  /* run your code here */
});

Keywords

FAQs

Package last updated on 01 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc